package com.pxst.merchant.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.pxst.merchant.entity.SysMerchantWhiteListEntity;
import com.pxst.merchant.mapper.SysMerchantWhiteListMapper;
import com.pxst.merchant.req.WhiteListReq;
import com.pxst.merchant.resp.WhiteListResp;
import com.pxst.resp.ApiResp;
import com.pxst.resp.PageResp;
import io.swagger.annotations.Api;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 28167
* @description 针对表【sys_merchant_white_list(商户白名单（sh130）)】的数据库操作Service
* @createDate 2023-09-14 17:20:07
*/
@Service
public interface SysMerchantWhiteListService extends IService<SysMerchantWhiteListEntity> {

    /**
     * -Author: @Ryan
     * -Description: 通过查询条件获取外白名单
     * -Param: [conditions-接收的查询条件参数]
     * -return: com.pxst.resp.ApiResp<java.util.List<com.pxst.merchant.resp.WhiteListResp>>
     **/
    public ApiResp<PageResp<WhiteListResp>> getWhiteListByConditions(WhiteListReq conditions);

    /**
     * -Author: @Ryan
     * -Description: 向白白名单中新增成员
     * -Param: [entity]
     * -return: com.pxst.resp.ApiResp<com.pxst.merchant.entity.SysMerchantWhiteListEntity>
     **/
    public ApiResp<SysMerchantWhiteListEntity> addWhiteListMember(SysMerchantWhiteListEntity entity);

    public ApiResp updateWhiteListMember(SysMerchantWhiteListEntity entity);
}
